package com.situ.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.situ.domain.entity.TManager;
import com.situ.domain.entity.TManagerExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TManagerMapper extends BaseMapper<TManager> {
    long countByExample(TManagerExample example);

    int deleteByExample(TManagerExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TManager record);

    int insertSelective(TManager record);

    List<TManager> selectByExample(TManagerExample example);

    TManager selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TManager record, @Param("example") TManagerExample example);

    int updateByExample(@Param("record") TManager record, @Param("example") TManagerExample example);

    int updateByPrimaryKeySelective(TManager record);

    int updateByPrimaryKey(TManager record);

    /**
     * 根据用户id获取权限列表
     * @param loginId
     * @return
     */
    List<String> getPermissionListByUserId(Integer loginId);

    /**
     * 根据用户id获取角色列表
     * @param loginId
     * @return
     */
    List<String> getRoleListByUserId(Integer loginId);
}